import socket,time
port = 54321
#host = "localhost"
host = "192.168.0.9"
#host = "137.138.196.188"
#host="128.141.140.144"
UDPsock=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
#s.bind(("", port))
while ( 1 ):
    commande = raw_input("Commande? ")
    UDPsock.sendto(commande,(host, port))
    print "envoie commande[",commande,"]"